//<input id="pwd_new" name="pwd_new" type="password" class="easyui-validatebox" data-options="required:true" />  
//<input id="pwd_cfm" name="pwd_cfm" type="password" class="easyui-validatebox" required="required" validType="equals['#pwd_new']" />
//<input id="pwd_cfm" name="pwd_cfm" type="password" class="easyui-validatebox" data-options="required:true, validType:'equals[\'#pwd_new\']'" />  
$.extend($.fn.validatebox.defaults.rules, {  
    equals: {  
        validator: function(value,param){  
            return value == $(param[0]).val();  
        },  
        message: 'Field do not match.'  
    }  
}); 

//<input class="easyui-validatebox" data-options="validType:'minLength[5]'">  
$.extend($.fn.validatebox.defaults.rules, {  
    minLength: {  
        validator: function(value, param){  
            return value.length >= param[0];  
        },  
        message: 'Please enter at least {0} characters.'  
    }  
}); 

if ($.fn.validatebox){
	$.fn.validatebox.defaults.rules.equals.message = '两次输入的字符不一致';
	$.fn.validatebox.defaults.rules.minLength.message = '输入内容长度不得少于{0}个字符';
}